<template>
	<view class="p-page p-picture-page">
	    <view class="title"> 上传照片 </view>
	    <view class="tip"> 图片上传总数量15张</view>
	
	    
	    
		
	    <view class="" v-if="render('picture-office')">
			<view class="tip-infos"> 电梯: </view>  <uploader   :file="ztPicture.liftUrl"  pathFlag="2" tag="liftUrl" />
	    	<view class="tip-infos"> 写字楼: </view>  <uploader   :file="ztPicture.officeBuildingUrl"  pathFlag="2" tag="officeBuildingUrl" />
	    </view>
		<view class="" v-if="render('picture-hose')">
			<view class="tip-infos"> 阳台: </view>  <uploader   :file="ztPicture.balconyUrl"  pathFlag="2" tag="balconyUrl" />
			<view class="tip-infos"> 地下室: </view>  <uploader   :file="ztPicture.basementUrl"  pathFlag="2" tag="basementUrl" />
			<view class="tip-infos"> 室内车位: </view>  <uploader   :file="ztPicture.carportUrl"  pathFlag="2" tag="carportUrl" /> 
			<view class="tip-infos"> 花园: </view>  <uploader   :file="ztPicture.gardenUrl"  pathFlag="2" tag="gardenUrl" />
		</view>
		<view class="" v-if="render('picture-gaocen')">
			<view class="tip-infos"> 电梯: </view>  <uploader   :file="ztPicture.liftUrl"  pathFlag="2" tag="liftUrl" />
			<view class="tip-infos"> 阳台: </view>  <uploader   :file="ztPicture.balconyUrl"  pathFlag="2" tag="balconyUrl" />
		</view>
		<view class="" v-if="render('picture-shop')">
	      <view class="tip-infos"> 商铺: </view>  <uploader   :file="ztPicture.shopUrl"  pathFlag="2" tag="shopUrl" />
	      <view class="tip-infos"> 夹层面积: </view>  <uploader   :file="ztPicture.interlayerUrl"  pathFlag="2" tag="interlayerUrl" />
		</view>
		<view class="" v-if="render('picture-dipi')">
		   <view class="tip-infos"> 地皮: </view>  <uploader   :file="ztPicture.landUrl"  pathFlag="2" tag="landUrl" /> 
		</view> 
	    
		<!-- 一般都有的 -->
		<view class="" v-if="!render('picture-dipi')">
		   <view class="tip-infos"> 厅: </view>  <uploader   :file="ztPicture.parlorUrl"  pathFlag="2" tag="parlorUrl" />
		   <view class="tip-infos"> 卫生间: </view>  <uploader   :file="ztPicture.toiletUrl"  pathFlag="2" tag="toiletUrl" /> 
		</view> 
		 
	  </view>
</template>

<script>
	export default {
		data() {
			return {
				ztPicture:{}
			};
		},
		created() {
			// 捞数据是真的麻烦
			this.ztPicture =  this.$store.state.ztPicture ||{} ;
		},
	}
</script>

<style>

</style>